﻿using Microsoft.AspNetCore.Http;

namespace MiniFox.Web.Middlewares
{
    /// <summary>
    /// 
    /// </summary>
    public class MiddlewareContext
    {
        HttpContext _context;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="httpContext"></param>
        public MiddlewareContext(HttpContext httpContext)
        {
            _context = httpContext;
        }
        /// <summary>
        /// 
        /// </summary>
        public HttpContext CurrentHttpContext
        {
            get { return _context; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool Cancel
        {
            get; 
            set;
        }
    }
}
